package com.turing.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.turing.common.response.ResponseVO;
import com.turing.user.entity.User;
import com.turing.user.vo.LoginTokenVO;
import com.turing.user.vo.LoginVO;
import com.turing.user.vo.UserVO;

/**
* @Description $!{table.comment} 服务类接口
* @Author livin
* @Date 2022-02-22
*/
public interface UserService extends IService<User> {

    ResponseVO<Object> login(String account, String password);

    String loginOut(String token);

    boolean CheckUserPrivilegeByUserId(Integer userId,Integer mainRoleId,String url);

    LoginVO changeMainRole(Integer roleId);

    UserVO queryOne(Integer userId);

    Integer getUserStatusById(Integer userId);

    User getUserByAccount(String account, String password);

    boolean hasCustomerByAccount(String account, String password);

    ResponseVO<Object> skip2Login(String account);

    User getUserByAccountName(String accountName);

    User saveUser(String accountName);
}
